<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description"  content=""/>
<meta name="keywords" content=""/>
<meta name="robots" content="ALL,FOLLOW"/>
<meta name="Author" content="AIT"/>
<meta http-equiv="imagetoolbar" content="no"/>
<title>Sistema 4K Assessoria Educacional - Login</title>
<link rel="icon" href="/static/images/4k_icon.ico" type="image/x-icon"/> 
<link rel="shorcut icon" href="/static/images/4k_icon.ico" type="image/x-icon"/> 
<link rel="stylesheet" href="/static/css/reset.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/screen.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/fancybox.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/jquery.wysiwyg.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/jquery.ui.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/visualize.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/visualize-light.css" type="text/css"/>
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="/static/css/ie7.css" />
<![endif]-->	
</head>

<body class="login">

<div class="login-box">
<div class="login-border">
<div class="login-style">
	<div class="login-header">
		<div class="logo clear">
			<img src="/static/images/logo_4k.png" alt="" class="picture" />
			<span class="textlogo">
				<span class="title">CONSULTORIA EDUCACIONAL</span>
				<span class="text">Área de Login</span>
			</span>
		</div>
	</div>
	{% if request.user.is_authenticated %}
	{% if request.user.detalheusuario.cargo == 'Professor' %}
		<meta http-equiv="REFRESH" content="0;url=/prof_index/">
	{% else %}
		<meta http-equiv="REFRESH" content="0;url=/index/">
	{% endif %}
	{% endif %}
	<form action="/login/" method="POST">
		
		<div class="login-inside">
			
			<div class="login-data">
				
					<div class="row clear">
						<label for="user">Usuário:</label>
						{{login_form.username}}	
					</div>
					<div class="row clear">
						<label for="password">Senha:</label>
						{{login_form.password}}
					</div>
					<input type="submit" class="button" value="Login" />
			</div>
			{% if erro %}
			<div class="notification note-error">
				<a href="#" class="close" title="Close notification">close</a>
				<p><strong>Erro no Login:</strong> Username ou a Senha está incorreta</p>
			</div>
			{% endif %}
			
		</div>
		<div class="login-footer clear">
			
		</div>
	</form>

</div>
</div>
</div>

<div class="login-links">
	<p><strong>Powered by <a href="http://www.polijr.com.br">Poli Júnior</a></strong> All rights reserved.</p> 
</div>

<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/jquery.visualize.js"></script>
<script type="text/javascript" src="/static/js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="/static/js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="/static/js/jquery.fancybox.js"></script>
<script type="text/javascript" src="/static/js/jquery.idtabs.js"></script>
<script type="text/javascript" src="/static/js/jquery.datatables.js"></script>
<script type="text/javascript" src="/static/js/jquery.jeditable.js"></script>
<script type="text/javascript" src="/static/js/jquery.ui.js"></script>
<script type="text/javascript" src="/static/js/jquery.jcarousel.js"></script>
<script type="text/javascript" src="/static/js/jquery.validate.js"></script>

<script type="text/javascript" src="/static/js/excanvas.js"></script>
<script type="text/javascript" src="/static/js/cufon.js"></script>
<script type="text/javascript" src="/static/js/Zurich_Condensed_Lt_Bd.js"></script>
<script type="text/javascript" src="/static/js/script.js"></script>

</body>
</html>
